#!/bin/bash
PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"

if [ "${PACKAGE_NAME}" = "amber-ce-loongnix" ];then
systemctl stop ace-loongnix-auto-upgrade
systemctl disable ace-loongnix-auto-upgrade
fi



if [ "$1" = "remove" ] || [ "$1" = "purge" ];then

echo "清理卸载残留"

rm -rf /opt/apps/$PACKAGE_NAME
else
echo "非卸载，跳过清理"
fi



